package com.chenyaowei.member.service;

import com.chenyaowei.member.domain.CywMemberReceiveAddress;

import java.util.List;

/**
 * 会员收货地址Service接口
 * 
 * @author 陈耀威
 * @date 2023-12-03
 */
public interface ICywMemberReceiveAddressService 
{
    /**
     * 查询会员收货地址
     * 
     * @param id 会员收货地址主键
     * @return 会员收货地址
     */
    public CywMemberReceiveAddress selectCywMemberReceiveAddressById(Long id);

    /**
     * 查询会员收货地址列表
     * 
     * @param cywMemberReceiveAddress 会员收货地址
     * @return 会员收货地址集合
     */
    public List<CywMemberReceiveAddress> selectCywMemberReceiveAddressList(CywMemberReceiveAddress cywMemberReceiveAddress);

    /**
     * 新增会员收货地址
     * 
     * @param cywMemberReceiveAddress 会员收货地址
     * @return 结果
     */
    public int insertCywMemberReceiveAddress(CywMemberReceiveAddress cywMemberReceiveAddress);

    /**
     * 修改会员收货地址
     * 
     * @param cywMemberReceiveAddress 会员收货地址
     * @return 结果
     */
    public int updateCywMemberReceiveAddress(CywMemberReceiveAddress cywMemberReceiveAddress);

    /**
     * 批量删除会员收货地址
     * 
     * @param ids 需要删除的会员收货地址主键集合
     * @return 结果
     */
    public int deleteCywMemberReceiveAddressByIds(Long[] ids);

    /**
     * 删除会员收货地址信息
     * 
     * @param id 会员收货地址主键
     * @return 结果
     */
    public int deleteCywMemberReceiveAddressById(Long id);

    List<CywMemberReceiveAddress> selectListByUserId(Long userId);
}
